﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//This will evolve just looking for ways to add atouch of class and greater exception transparancy
namespace FinPlusCommon
{
    
    public class TemplateException : Exception
    {
        public TemplateException() { }

        public TemplateException(string message): base(message) { }

        public TemplateException(string message, Exception inner) : base(message, inner) { }
    }

    public class QueryExecuteException : Exception
    {
        public QueryExecuteException() { }

        public QueryExecuteException(string message) : this(message, null) { }

        public QueryExecuteException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class CmdRouterException : Exception
    {
        public CmdRouterException() { }

        public CmdRouterException(string message) : this(message, null) { }

        public CmdRouterException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class CmdExecuteException : Exception
    {
        public CmdExecuteException() { }

        public CmdExecuteException(string message) : this(message, null) { }

        public CmdExecuteException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class ServiceConnException : Exception
    {
        public ServiceConnException() { }

        public ServiceConnException(string message) : this(message, null) { }

        public ServiceConnException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class ViewLoadException : Exception
    {
        public ViewLoadException() { }

        public ViewLoadException(string message) : this(message, null) { }

        public ViewLoadException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class BookerException : Exception
    {
        public BookerException() { }

        public BookerException(string message) : this(message, null) { }

        public BookerException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class QueryException : Exception
    {
        public QueryException() { }

        public QueryException(string message) : this(message, null) { }

        public QueryException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class AnalyticsException : Exception
    {
        public AnalyticsException() { }

        public AnalyticsException(string message) : this(message, null) { }

        public AnalyticsException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class AnalyticsValueException : Exception
    {
        public AnalyticsValueException() { }

        public AnalyticsValueException(string message) : this(message, null) { }

        public AnalyticsValueException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class AnalyticsFormatException : Exception
    {
        public AnalyticsFormatException() { }

        public AnalyticsFormatException(string message) : this(message, null) { }

        public AnalyticsFormatException(string message, Exception innerException) : base(message, innerException) { }
    }

    public class TradCacheException : Exception
    {
        public TradCacheException() { }

        public TradCacheException(string message) : this(message, null) { }

        public TradCacheException(string message, Exception innerException) : base(message, innerException) { }
    }

}
